package chaowan.pojo;
import jakarta.validation.constraints.*;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class Goods {
    private Long gid;

    @NotEmpty
    private String name;

    private String intro;

    @DecimalMin("0.01")
    private BigDecimal price;

    @Min(0)
    private Integer stock;

    private String coverUrl;

    private long categoryId;

    private Integer status;

    private Date addTime;
}